package com.sell.repository;

import com.sell.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author: megan
 * @Data: 2018/12/3 10:25 PM
 * @Description: 订单dao
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {

    // 根据openid 查询数据
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenId, Pageable pageable);
}
